package com.xbongbong.crm.feign;

import com.xbongbong.paas.pojo.dto.ButtonGetDTO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 吴峰
 * @date 2022/07/27 19:07
 */
@FeignClient(name = "pro-web-pc",contextId = "formDataFeign")
public interface FormDataFeign {


    @RequestMapping(value = "/pro/v1/form/data/button/get", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<Object> buttonGet(@RequestBody ButtonGetDTO buttonGetDTO, @RequestParam("lang") String lang);
}
